package com.mazaiting.socket.properties;

import com.mazaiting.socket.server.entity.ServerConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 服务监听配置
 *
 * @author mazaiting
 * @create_time 2022/4/18 13:25
 */
@Component
@ConfigurationProperties(prefix = "server.listen")
public class ServerProperties {
    /**
     * 服务端口
     */
    private List<ServerConfig> serverConfigs;

    public List<ServerConfig> getServerConfigs() {
        return serverConfigs;
    }

    public void setServerConfigs(List<ServerConfig> serverConfigs) {
        this.serverConfigs = serverConfigs;
    }
}
